<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> / <a href="{url('setting/uploads')}">上传配置</a></div>
<div class="m10">
<div class="table-head mt10"><strong><i class="iconfont">&#xf044;</i> 上传配置</strong></div>
<table class="table table-th">
<tr><th>附件上传目录:</th><td><input class="config w180 input" type="text" name="upfolder" value="{$config['UP_FOLDER']}" />开始禁止添加“/”反斜杠,结尾必须添加。</td></tr> 
<tr><th>上传文件大小:</th><td><input class="config w50 input" type="text" name="upsize" value="{$config['UP_SIZE']}" />MB,只能填写数字,单位是“M”。</td></tr>
<tr><th>上传文件类型:</th><td><textarea name="upexts" class="config textarea w500 h60">{$config['UP_EXTS']}</textarea>每个文件之间用半角“,”逗号隔开。</td></tr>
<tr><th>上传地址:</th><td class="gray">(POST){url('uploads/index')}</td></tr> 
<tr><th>返回信息:</th><td class="gray">JSON数据:error=0成功1失败 ,url=上传文件路径,message:失败提示</td></tr> 
  </table>
</div>
<script language="javascript">
Do('base','dialog',function(){
    $(".config").blur(function(){
        var name = $(this).attr('name');
        var value = $(this).val();
	    $.post('{url('setting/uploads')}',{name:name,value:value},function(data){
	          $.dialog.tips(data);
	    })
    });
})
</script>